<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>error</title>
</head>
<body>
<div style="text-align: center">
    <h1>生成失败！<span style="color: red" id="count_down"></span></h1>
    <a href="generatePage">返回</a>
</div>
</body>
</html>
<script>
    let countDown = 3;
    let key = setInterval(() => {
        document.getElementById('count_down').innerHTML = countDown
        countDown -= 1
        if (countDown < 0) {
            clearInterval(key)
            location.href = 'generatePage'
        }
    }, 1000)
</script>